﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLHKaiCaiJHQS.ascx.cs" Inherits="Web.Controls.UCLHKaiCaiJHQS" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<script type="text/javascript">
    function GetValue(type) {
        if (type == 'bh') {
            return UCLHUserInfo_hdCollection.Get("bh");
        }
        else {
            return "";
        }
    }
    function UCLHUserInfo_txtBHKeyPress() {
        if (event.keyCode == 13) {
            setTimeout(function () {

            }, 0);
            event.preventDefault ? event.preventDefault() : (event.returnValue = false);
            if (UCLHUserInfo_BH.GetText() == '') {
                alert('请输入用户号。');
                UCLHUserInfo_txtYongHuM.SetText("");
                UCLHUserInfo_BH.Focus();
                return;
            }
            UCLHUserInfo_ASPxCallback1.PerformCallback("bh");
        }
    }
    function UCLHUserInfo_ASPxCallbackCommonComplete(rs) {
        var arr = rs.split('|');
        var type = arr[0];
        var state = arr[1];
        var specialIdentity = arr[2];
        var msg = arr[3].split('-');
        if (msg[0] == 'True') {
            alert(msg[1]);
        }
        UCLHUserInfo_hdCollection.Set("type", type);
        if (state == 'True') {
            if (type == "bh") {
                //加载信息
                UCLHUserInfo_txtYongHuM.SetText(arr[4]);
                UCLHUserInfo_txtXianJH.SetText(arr[5]);
                UCLHUserInfo_btnActPerform.onClick();
            }
        }
    }   

</script>
 <div style="display:none;">
                <dx:ASPxButton ID="btnActPerform" ClientInstanceName="UCLHUserInfo_btnActPerform" runat="server" Text="ASPxButton" OnClick="btnActPerform_Click"></dx:ASPxButton>
                    </div>
<dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="UCLHUserInfo_hdCollection" runat="server"></dx:ASPxHiddenField>
<dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="UCLHUserInfo_ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){UCLHUserInfo_ASPxCallbackCommonComplete(e.result);}"></dx:ASPxCallback>
<fieldset style="border: 1px solid  cornflowerblue;width:97%;margin:auto;">
    <legend><b>开采计划调整信息</b></legend>
    <table style="width:70%;margin:auto;">
        <tr>
            <td align="right" style="width: 20%">登记文号：
            </td>
            <td style="width: 25%">
                <dx:ASPxTextBox ID="txtLaiHanBH"   ReadOnly="true" runat="server" Width="100%" Text=""></dx:ASPxTextBox>
            </td>
            <td style="width: 20%" align="right"><%--许可证编号：--%></td>
            <td style="width: 25%">
                <dx:ASPxTextBox ID="txtXuKeZH" ReadOnly="true" runat="server" Width="100%" Text="" Visible="false"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td align="right" >用户号：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtYongHuH" ClientInstanceName="UCLHUserInfo_BH" runat="server" Text="" Width="100%" ClientSideEvents-KeyPress="function(s,e){UCLHUserInfo_txtBHKeyPress();}"></dx:ASPxTextBox>
            </td>
            <td align="right">
                年：
            </td>
            <td>
                <dx:ASPxComboBox ID="cmbY" runat="server" ValueType="System.String"></dx:ASPxComboBox>
            </td>
        </tr>
        <tr> 
            <td align="right">用户名：
            </td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtYongHuM" ClientInstanceName="UCLHUserInfo_txtYongHuM" runat="server" Text="" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td align="right" >现计划：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtXianJH" ClientInstanceName="UCLHUserInfo_txtXianJH" runat="server" Text="" Width="100%"></dx:ASPxTextBox>
            </td>
            <td align="right">
                调整为：
            </td>
            <td>
                <dx:ASPxTextBox ID="txtXinJH" ClientInstanceName="UCLHUserInfo_txtXinJH" runat="server" Text="" Width="100%"></dx:ASPxTextBox>
            </td>
        </tr>
    </table>
</fieldset>
